<head>
	<link rel="stylesheet" href="assets/css/gallery.css">
</head>
<div class='c-box c-box-300 c-box-right gallery-galleries' id='c-more-photos'>
	<h3><?PHP echo $gallery->category_parent['name'];?> Photo Galleries</h3>
	<?PHP
	$ctr = 1;
	foreach($gallery->galleries as $x)
	{
		if($x['type']=='gallery' && $ctr<=6)
		{
			
	
			?>

				<li>
						
							<a href='gallery/<?PHP echo $x["id"];?>/<?PHP echo csq($x["title"]);?>' class="">
								<img src="<?PHP echo ap($x['thumb']);?>" width="60" height="60" alt="<?PHP  echo $x['title'];?>">
						
				<br />
<?PHP  echo $x['title'];?></a>
				



				</li>
			<?PHP
				}
				if($ctr%3==0) echo "<hr color='#333' style='border:0'>";
			$ctr++;
	}
	
	?>
    <a href="gallery_view/<?php echo $parent['id'] ?>"><span class="more-galleries">More Galleries</span></a>
</div>


<div class='c-box-600 c-box c-box-left' id='article-post'>
    
	<h1><?PHP
	echo $gallery->current_gallery['title'];
	?></h1>
	<img src="a/show-resized.php?file=<?PHP echo $gallery->current_gallery['image'];?>&x=600&y=280">
			<hr />
		
		<?PHP
		
		echo $gallery->current_gallery['content'];
	?>
	<hr />
	<?PHP echo "Click on thumbnails to view larger image.<br />"; ?>
		<ul id='gallery-main-images'>
				<?PHP thick_box_gallery($gallery->gallery_images,'image','thumb',NULL); ?>
		</ul>
	
	 
</div>


	<div class='c-box c-box-300 c-box-right c-box-latest-videos' id='c-latest-articles'>
		<h3>What's New</h3>
		<?PHP
		$items=0;

		foreach($gallery->items as $x)
		{

			if($items <= 2 && !empty($x['title']) && ($x['type']=='video'))
			{


				?>

					<li>

									<div class='c-box-latest-item-text-bida'><a href='play/<?PHP echo $x["id"];?>/<?PHP echo csq($x["title"]);?>' class="popoutplayer c-box-latest-link"><?PHP  echo $x['title']."<br />";?></a>
									</div>
							<div class='c-box-latest-item-image' style="background-image:url('<?PHP echo ap($x['thumb']);?>');">
								<a href='play/<?PHP echo $x["id"];?>/<?PHP echo csq($x["title"]);?>' class="popoutplayer">
									<img src="assets/images/play-mini.png" width="60" height="24" alt="Play Mini">
								</a>
							</div>





					</li>
				<?PHP
				$items++;
			}


		}

		?>
	
	</div>

	

<div class='c-box-600 c-box c-box-left' id='fb-comments-box'>
	<h3>Comments</h3>
	<fb:comments xid="<?PHP echo $content_tag;?>" numposts="10" width="620" publish_feed="true"></fb:comments>
</div>
